package wc.controller.buttonlisteners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import wc.MallApplication;
import wc.controller.factory.MallInteriorFactory;

public class ButtonBenchListener implements ActionListener {

	@Override
	public void actionPerformed(ActionEvent e) {
		if(MallApplication.needToPlaceComponents.size() == 0) {
			System.out.println("Place your bench");
			MallApplication.selectedComponent = MallInteriorFactory.getInstance().createBench(); 
		} else System.out.println("Not done placing nescecary items for the room");
	}
}
